package com.lzj.demo.design.builder;

import com.lzj.demo.design.builder.matter.ceiling.LevelOneCeiling;
import com.lzj.demo.design.builder.matter.ceiling.LevelTwoCeiling;
import com.lzj.demo.design.builder.matter.coat.DuluxCoat;
import com.lzj.demo.design.builder.matter.coat.LiBangCoat;
import com.lzj.demo.design.builder.matter.floor.ShengXiangFloor;
import com.lzj.demo.design.builder.matter.title.DongPengTitle;
import com.lzj.demo.design.builder.matter.title.MarcoPoloTitle;

import java.math.BigDecimal;

public class MenuDirector {
    //豪华欧式
    public IMenuBuilder level1(BigDecimal area){
        return new MenuBuilderBuilder(area,"1")
                .appendCeiling(new LevelTwoCeiling())
                .appendCoat(new DuluxCoat())
                .appendFloor(new ShengXiangFloor());
    }
    //轻奢田园
    public IMenuBuilder level2(BigDecimal area){
        return new MenuBuilderBuilder(area,"2")
                .appendCeiling(new LevelTwoCeiling())
                .appendCoat(new LiBangCoat())
                .appendTitle(new MarcoPoloTitle());
    }
    //现代简约
    public IMenuBuilder level3(BigDecimal area){
        return new MenuBuilderBuilder(area,"3")
                .appendCeiling(new LevelOneCeiling())
                .appendCoat(new LiBangCoat())
                .appendTitle(new DongPengTitle());
    }
}
